package com.hemerasolutions.v2trainer.model.goals;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;

import com.hemerasolutions.v2trainer.model.base.BaseModel;
import com.hemerasolutions.v2trainer.model.modality.Modality;

@Entity
public class Competition extends BaseModel {
 
	private static final long serialVersionUID = 1L;


    @Column(length=50)    
	private String name;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date competitionDate;

	@OneToOne
    @JoinColumn(name = "modality_id") 
	private Modality modality;

    @Column(length=180)    
	private String address;

    @Column(length=50)    
	private String country;

    @Column(length=50)    
	private String city;

    @Column(length=100)    
	private String website;
	 
    @Column
	private int seriousness;

	public String getName() {
		return name;
	}

	public Date getCompetitionDate() {
		return competitionDate;
	}

	public Modality getModality() {
		return modality;
	}

	public String getAddress() {
		return address;
	}

	public String getCountry() {
		return country;
	}

	public String getCity() {
		return city;
	}

	public String getWebsite() {
		return website;
	}

	public int getSeriousness() {
		return seriousness;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setCompetitionDate(Date competitionDate) {
		this.competitionDate = competitionDate;
	}

	public void setModality(Modality modality) {
		this.modality = modality;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public void setSeriousness(int seriousness) {
		this.seriousness = seriousness;
	}

}
 
